package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallPeripherySpecificationDO;
import com.starlink.model.request.MallPeripherySpecificationRequest;
import com.starlink.model.vo.MallPeripherySpecificationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallPeripherySpecificationDtoMapper {

    MallPeripherySpecificationDtoMapper INSTANCE = Mappers.getMapper(MallPeripherySpecificationDtoMapper.class);

    /**
    * DO to VO
    * @param mallPeripherySpecificationDO
    * @return
    */
    MallPeripherySpecificationVO do2VO(MallPeripherySpecificationDO mallPeripherySpecificationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallPeripherySpecificationDO request2DO(MallPeripherySpecificationRequest request);
}
